<script>
	import {
		mapActions
	} from 'pinia'
	import {
		LCInit
	} from './LC';
	import BigNumber from 'bignumber.js'


	export default {
		onLaunch: function() {

			LCInit()
			

			
			// #ifdef H5
			let windowsVH = window.innerHeight / 100;
			document.querySelector('#app').style.setProperty('--vh', windowsVH + 'px');
			console.log(document.querySelector('#app'))
			window.addEventListener('resize', function() {
				document.querySelector('#app').style.setProperty('--vh', windowsVH + 'px');
			});
			// #endif


		},
		onLoad() {

			// console.log(12312)
			// store.configInit()
		}
		// onShow: function() {
		// 	console.log('App Show')
		// },
		// onHide: function() {
		// 	console.log('App Hide')
		// },

	}
</script>
<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		computed,
		onMounted
	} from 'vue'
	import {
		useConfigStore
	} from '@/store/config.js'
	let store = useConfigStore()
</script>

<style lang="scss">
	.u-line-1 {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.u-line-2 {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	image {
		image-rendering: -moz-crisp-edges;
		image-rendering: -o-crisp-edges;
		image-rendering: -webkit-optimize-contrast;
		image-rendering: crisp-edges;
		-ms-interpolation-mode: nearest-neighbor;
	}


	.center_between {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.status_bar_nav {
		padding-top: calc(var(--status-bar-height) + 120rpx);
	}

	.status_no_nav {
		padding-top: calc(var(--status-bar-height) + 10rpx);
	}

	.c_center {
		display: flex;
		align-items: center;
	}

	.page {
		min-height: calc(100vh - var(--status-bar-height) - 120rpx);

	}

	.status_bar {
		padding-top: var(--status-bar-height);
	}

	.h5_tabbar {
		/* #ifdef H5 */
		padding-bottom: calc(var(--window-bottom) / 2);
		/* #endif */


	}

	.login-buttom {
		&::after {
			border: none;
		}
	}

	uni-toast {
		z-index: 8888888888 !important;
	}

	.main-button {

		height: 112rpx;
		background: linear-gradient(270deg, #09AA8C 0%, #00807D 100%);
		border-radius: 160rpx 160rpx 160rpx 160rpx;
		font-size: 32rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 112rpx;


	}

	.status-bar {
		height: var(--status-bar-height);
	}

	.page-wapper {
		background: #fff;

	}

	.up {
		color: #FF8282;

	}

	.down {
		color: #45AFA5;
	}

	.upbg,
	.downbg {
		width: 17rpx;
		height: 15rpx;
		background-image: url('static/icon_up.png');
		background-size: 100% 100%;
	}

	.downbg {
		background-image: url('static/icon_down.png');
	}

	page {

		min-height: 100%;
		display: flex;
		flex-direction: column;
		// background-color: v-bind(color);
	}

	body {

		background-color: #fff;

	}

	uni-page-body {}

	.uni-scroll-view {
		-ms-overflow-style: none;
		/* 对于IE、Edge浏览器 */
		scrollbar-width: none;
		/* 对于火狐浏览器 */
	}

	// @media (prefers-color-scheme: dark){  
	//    page{  
	//         background-color: #ffffff;  

	//     }  
	// }
	// @media (prefers-color-scheme: light){  
	//     page {  
	//         background-color: #1B1C1E;  

	//     }  
	// }
</style>